(function($){
	var responders = {};

	$.response = function(dataType, responseFun) {
		responders[dataType] = responseFun;
	};

	$.request = function(dataType, requestFun) {
		requestFun(responders[dataType]());
	};
}) (jQuery);